package nl.boelen.game.handler.keys;

public class BasicKey extends Key {
    public BasicKey(String name) {
        super(name);
    }

    public void toggle(boolean pressed) {
        if (isPressed != pressed) {
            this.isPressed = pressed;
            if (isPressed) {
                timesPressed++;
            }
        }
    }
}